package io.gitee.twoke.generator.engine.impl.cmd;

import io.gitee.twoke.generator.engine.impl.interceptor.Command;
import io.gitee.twoke.generator.engine.impl.interceptor.CommandContext;

public class DeleteTemplateFileCmd implements Command<Void> {

    private String templateFileId;

    public DeleteTemplateFileCmd(String templateFileId) {
        this.templateFileId = templateFileId;
    }

    @Override
    public Void execute(CommandContext commandContext) {
        commandContext.getTemplateFileEntityManager().delete(this.templateFileId);
        return null;
    }
}
